package cn.sunshine.cn.sunshine;

import cn.sunshine.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class UserController {
    @GetMapping(value = "/user/{id}" )
    public User loadById(@PathVariable Long id){
        return  new User(id,"ls:"+id,"我是ls");
    }
}
